//
//  HomeTableViewController.swift
//  sinaweibo
//
//  Created by icefs2 on 15/11/8.
//  Copyright © 2015年 icefs2. All rights reserved.
//

import UIKit
import AFNetworking
import SVProgressHUD
class HomeTableViewController: BaseTableviewControll {
    

    override func viewDidLoad() {
        super.viewDidLoad()
    }
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        vistorloginview?.setupinfor("visitordiscover_feed_image_house", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", ishome: true)
        
        let AFN = AFHTTPSessionManager()
        SVProgressHUD.show()
        AFN.responseSerializer.acceptableContentTypes?.insert("text/html")
        AFN.GET("http://www.weather.com.cn/data/sk/101010100.html", parameters: nil, success: { (task, result) -> Void in
            
            SVProgressHUD.dismiss()
            
            }) { (_, error) -> Void in
                print(error)
               
                SVProgressHUD.showErrorWithStatus("用户正在请求中")
        }
        
       
       
    }

    
    

  }
//extension HomeTableViewController {
//func demon() {
//
//}
//    
//}